package com.ruoyi.car.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 卖车评估（卖车-评估结果页）对象 t_car_evaluation
 * 
 * @author yby
 * @date 2025-09-02
 */
public class CarEvaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评估ID */
    private Long id;

    /** 卖家ID（t_user.id） */
    @Excel(name = "卖家ID", readConverterExp = "t=_user.id")
    private Long sellerId;

    /** 关联车辆ID（t_car_info.id，未发布则为空） */
    @Excel(name = "关联车辆ID", readConverterExp = "t=_car_info.id，未发布则为空")
    private Long carId;

    /** 品牌ID（t_car_brand.id） */
    @Excel(name = "品牌ID", readConverterExp = "t=_car_brand.id")
    private Long brandId;

    /** 车系ID（t_car_series.id） */
    @Excel(name = "车系ID", readConverterExp = "t=_car_series.id")
    private Long seriesId;

    /** 首次注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "首次注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerTime;

    /** 行驶里程（万公里） */
    @Excel(name = "行驶里程", readConverterExp = "万=公里")
    private BigDecimal mileage;

    /** 事故情况（0-无事故，1-轻微，2-重大） */
    @Excel(name = "事故情况", readConverterExp = "0=-无事故，1-轻微，2-重大")
    private Long accidentStatus;

    /** 评估价格（元） */
    @Excel(name = "评估价格", readConverterExp = "元=")
    private BigDecimal evaluationPrice;

    /** 评估时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评估时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date evaluationTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSellerId(Long sellerId) 
    {
        this.sellerId = sellerId;
    }

    public Long getSellerId() 
    {
        return sellerId;
    }

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }

    public void setBrandId(Long brandId) 
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }

    public void setSeriesId(Long seriesId) 
    {
        this.seriesId = seriesId;
    }

    public Long getSeriesId() 
    {
        return seriesId;
    }

    public void setRegisterTime(Date registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Date getRegisterTime() 
    {
        return registerTime;
    }

    public void setMileage(BigDecimal mileage) 
    {
        this.mileage = mileage;
    }

    public BigDecimal getMileage() 
    {
        return mileage;
    }

    public void setAccidentStatus(Long accidentStatus) 
    {
        this.accidentStatus = accidentStatus;
    }

    public Long getAccidentStatus() 
    {
        return accidentStatus;
    }

    public void setEvaluationPrice(BigDecimal evaluationPrice) 
    {
        this.evaluationPrice = evaluationPrice;
    }

    public BigDecimal getEvaluationPrice() 
    {
        return evaluationPrice;
    }

    public void setEvaluationTime(Date evaluationTime) 
    {
        this.evaluationTime = evaluationTime;
    }

    public Date getEvaluationTime() 
    {
        return evaluationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sellerId", getSellerId())
            .append("carId", getCarId())
            .append("brandId", getBrandId())
            .append("seriesId", getSeriesId())
            .append("registerTime", getRegisterTime())
            .append("mileage", getMileage())
            .append("accidentStatus", getAccidentStatus())
            .append("evaluationPrice", getEvaluationPrice())
            .append("evaluationTime", getEvaluationTime())
            .toString();
    }
}
